<!-- 使用全局注册的插件 -->
<template>
  <div>
    <router-link to="/">
      <button>返回Home</button>
    </router-link>
    <button @click="showModal">打开弹窗</button>
  </div>
</template>

<script>
export default {
  name: "OverAll",
  data() {
    return {};
  },
  methods: {
    showModal() {
      this.$Dialog({
        text: "确定删除么？",
        title: "提示",
        btnText1: "确定",
        btnText2: "取消",
        makeSure: () => {
          console.log("删除");
        },
      });
    },
  },
};
</script>
<style scoped>
</style>